<?php

return [

	///数据库
	'db' => [
		'dsn' => 'mysql:host=127.0.0.1;dbname=fox-admin',
		'user' => 'root',
		'pwd' => '123123',
	],

	///启动时，预加载的文件，相对于ROOT
	'start_files' => [
		'App/filter',
		'App/route'
	],

	///路由
	'route' => [
		'(\d+)' => 'Home/Show/$1',
	],

	///mvc基本配置
	'mvc' => [
		'controller_path' => 'Controllers',
		'view_path' => 'Views',
		'model_path' => 'Models',
		'default_controller' => 'Home',
		'e404' => 'Home/e404',
	],

	
	//应用路径，相对于ROOT
	'app_path' => 'App',

	//配置文件夹路径,相对于app_path, 如果没有什么配置文件，可以忽略
	'conf_path' => 'Conf',

	
	//错误处理
	'error' => [
		'type' => 'Fox\ErrorHandle',
		'pars'=>[
			'mode'=>'show',
			'url' => '/Home/Error'
		]
	],

	//模板引擎
	'tpl' => [
		'type' => 'Fox\Template',
		'pars' => [
			'view_path' => ROOT.'/App/Views',
			'cache_dir'=>'.cache',
			'xss_filter' => 'htmlspecialchars',
			'ext' => '.php',
			'compiler_finish' => false
		]
	],

];
